package org.szy.core.common.exception;

import org.szy.core.common.entity.R;

/**
 * 基础异常类标识
 *
 * @author 孙志阳
 * @date 2023-06-13
 * @since 1.0.0
 **/
public class BaseExceptionCode {

    public static final R<String> CODE_200 = R.fail(200, "Succeed");

    public static final R<String> CODE_400 = R.fail(400, "未知错误");

    public static final R<String> CODE_4001011 = R.fail(4001011, "请求api不存在");

    public static final R<String> CODE_4001012 = R.fail(4001012, "请求不符合标准");

    public static final R<String> CODE_4001013 = R.fail(4001013, "签名错误");

    public static R<String> CODE_4001014(String names) {
        return R.fail(4001014, names);
    }

    public static final R<String> CODE_4001015 = R.fail(4001015, "请求太多");

    public static final R<String> CODE_4001016 = R.fail(4001016, "该请求不在白名单中");

    public static final R<String> CODE_4001017 = R.fail(4001017, "请求容量超过限制");

    public static final R<String> CODE_4001018 = R.fail(4001018, "加密和解密请求失败");
    public static final R<String> CODE_4001021 = R.fail(4001021, "登录无效或未登录");
}
